package com.newgrand.controller;

import com.newgrand.service.impl.ContractService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: zhanglixin
 * @Data: 2023/9/20 10:53
 * @Description: TODO
 */
@Slf4j
@Api(tags = "手工同步用")
@RestController
@RequestMapping("/Contract")
public class ContractController {

    @Autowired
    private ContractService contractService;

    @RequestMapping(value = "/save", method = RequestMethod.POST)
    public @ResponseBody
    Object save(@RequestBody String data) throws Exception {
        return contractService.save(data);
    }

}
